//
//  KDBlackListTableViewCell.m
//  LaiKeDaoClient
//
//  Created by dongkedi的iMac on 15/11/10.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "KDBlackListTableViewCell.h"

@implementation KDBlackListTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createUI];
    }
    return self;
}

- (void)createUI
{
    self.headImageView = [[UIImageView alloc] initWithFrame:(CGRect){10,5,44,44}];
    [self.headImageView setImage:[UIImage imageNamed:@"ic_pic.png"]];
    self.headImageView.layer.cornerRadius = 5;
    self.headImageView.layer.masksToBounds = YES;
    [self.contentView addSubview:_headImageView];
    
    self.nameLabel = [[UILabel alloc] initWithFrame:(CGRect){X(_headImageView)+WIDTH(_headImageView)+10,Y(_headImageView),200,20}];
    [_nameLabel setTextAlignment:NSTextAlignmentLeft];
    [_nameLabel setFont:[UIFont systemFontOfSize:12]];
    [_nameLabel setBackgroundColor:[UIColor clearColor]];
    [_nameLabel setText:@"姓名  性别  年龄"];
    [self.contentView addSubview:_nameLabel];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setFrame:(CGRect){kScreenWidth-63-10,12,63,28}];
    [button setTitle:@"移除" forState:UIControlStateNormal];
//    [button.titleLabel setFont:[UIFont systemFontOfSize:32]];
    [button setBackgroundColor:[UIColor lightGrayColor]];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
//    button.layer.cornerRadius = 0;//设置那个圆角的有多圆
//    button.layer.borderWidth = 1;//设置边框的宽度
//    button.layer.borderColor = [kNavBlueColor CGColor];
//    button.layer.masksToBounds = YES;
    [self.contentView addSubview:button];
    self.button1 = button;
}

- (void)buttonClick:(UIButton *)btn
{
    
}
- (void)awakeFromNib {
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
